{% extends "admin.html" %}
{% block left %}
<h2>新增城市</h2>
<form action="#" method="post">
<table>
	<tr>
		<td>
			城市名
		</td>
		<td><input type="text" name="name"/></td>
	</tr>
	<tr>
		<td>
			URL
		</td>
		<td><input type="text" name="url"/></td>
	</tr>
	<tr>
		<td>
			备注
		</td>
		<td><input type="text" name="remark"/></td>
	</tr>
	<tr>
		<td></td>
		<td><input type="submit" value="新增"/> </td>
	</tr>
</table>
</form>
{% endblock left %}
{% block right %}
<h2>城市列表</h2>
<form action="deletecity" method="post">
<table>
	<tr>
		<td>
			<select name="list" multiple style="height:200px;width:200px;">
				{% if list %}
				{% for city in list %}
				<option value="{{ city.key }}">{{ city.name }} {{ city.url }}</option>
				{% endfor %}
				{% endif %}
			</select>
		</td>
		<td>
		</td>
	</tr>
	<tr>
		<td><input type="submit" value="删除"/></td>
		<td></td>
	</tr>
</table>
</form>
{% endblock right %}